xen.git
20 years agoMinor change also needed in vcpu.c for guests to own ar.kr's.
djm@kirby.fc.hp.com [Wed, 21 Sep 2005 21:13:16 +0000 (15:13 -0600)]
Minor change also needed in vcpu.c for guests to own ar.kr's.

20 years agoAnother fix for handling ar.kr's
djm@kirby.fc.hp.com [Wed, 21 Sep 2005 20:13:07 +0000 (14:13 -0600)]
Another fix for handling ar.kr's

20 years agoRemove paravirtualization of ar.kr registers (may need hyperprivop for
djm@kirby.fc.hp.com [Wed, 21 Sep 2005 19:41:25 +0000 (13:41 -0600)]
Remove paravirtualization of ar.kr registers (may need hyperprivop for
mov_to_kr later)
Signed-off by: Dan Magenheimer <dan.magenheimer@hp.com>

20 years agoXenlinux/ia64 can't use xenlinux/x86 version of drivers/acpi/tables.c
djm@kirby.fc.hp.com [Wed, 21 Sep 2005 16:25:47 +0000 (10:25 -0600)]
Xenlinux/ia64 can't use xenlinux/x86 version of drivers/acpi/tables.c
Also more unique naming for directories that are moved aside

20 years agoBuild tweaks for xenlinux/ia64
djm@kirby.fc.hp.com [Wed, 21 Sep 2005 15:50:38 +0000 (09:50 -0600)]
Build tweaks for xenlinux/ia64

20 years agoStart fleshing out -sparse tree for xenlinux/ia64
djm@kirby.fc.hp.com [Wed, 21 Sep 2005 15:06:30 +0000 (09:06 -0600)]
Start fleshing out -sparse tree for xenlinux/ia64

20 years agoSupport files for building xenlinux-ia64 from -sparse tree
djm@kirby.fc.hp.com [Tue, 20 Sep 2005 23:14:54 +0000 (17:14 -0600)]
Support files for building xenlinux-ia64 from -sparse tree

20 years agoClone of Christian's xen-unstable mkbuildtree patch (cset 6960)
djm@kirby.fc.hp.com [Tue, 20 Sep 2005 22:57:09 +0000 (16:57 -0600)]
Clone of Christian's xen-unstable mkbuildtree patch (cset 6960)

20 years agoFix dcr.pp and psr.pp support (non-VTI) so pfmon --system-wide works
djm@kirby.fc.hp.com [Tue, 20 Sep 2005 22:11:19 +0000 (16:11 -0600)]
Fix dcr.pp and psr.pp support (non-VTI) so pfmon --system-wide works
Signed-off by: Dan Magenheimer <dan.magenheimer@hp.com>

20 years agoGet multiple domains working again
djm@kirby.fc.hp.com [Tue, 20 Sep 2005 19:03:25 +0000 (13:03 -0600)]
Get multiple domains working again
Signed-off-by Kevin Tian <kevin.tian@intel.com>

Some interesting issues found related to two small patches:
1. Only "xm console 1" and "Ctrl + ]" can make xenU forward progress,
and however still failed to connect blkback later.
[Reason] Previous event injection on XEN/IPF only set vIRR bit
when evtchn_set_pending. However with the latest xenlinux code, it's
possible for xenlinux to set pending indication and selector when
unmasking some pending event channel. This path has nothing to do with
vIRR bit.

[Solution] We should check event pending every time when
checking pending interrupts before returning to guest.

2. After fixing first issue, nested event is injected when first event
is still in handle with lock held. Then dead lock happens at end of
"xend start".
[Reason] Due to same logic as above, xenlinux may set pending
indication and re-trigger pending event by force_evtchn_callback. On
x86, this stub just does a dummy xen_version hypercall and pending event
will be injected back when leaving hypervisor. However on IA64,
force_evtchn_callback is incautiously made invoking evtchn_interrupt()
directly, while the former may be called with lock held.

[Solution] Just let force_evtchn_callback as empty for simple now.

20 years agoMerge vcpu phase 2
djm@kirby.fc.hp.com [Mon, 19 Sep 2005 17:08:20 +0000 (11:08 -0600)]
Merge vcpu phase 2
Signed-off-by Anthony Xu <Anthony.xu@intel.com>
1. Add r4,r5,r6,r7,eml_unat,rfi_pfs six members at the end of pt_regs,
   thus VMM for non-VT domain doesn't need to save/restore SWITCH_STACK
   just in case VMM may need modify guest r4,r5,r6,r7 value, eml_unat is saved
   in case VMM may need modify guest unat, rfi_pfs is used to emulate guest rfi
   instruction for VT domain, and is used as dummy member for alignment of F6,
   F7 etc. in pt_regs for non-VT domain. And add code to save/restore r4,r5,r6,
   r7,eml_unat in minstate.h and entry.s for non-VT domain. and remove code to
   save/restore SWITCH_STACK in ivt.S for non-VT domain.
2. Originally guest banked registers of VT domain are saved directly in VPD. Now
   Guest banked registers of VT domain are saved to pt_regs at the entry of VMM,
   just for consistence with non-VT domain, vmx_vcpu_bsw0 and vmx_vcpu_bsw1 are
   rewriten for accomodating this change.
3. After above changes, all guest registers and nat bits are saved at same place
   both for VTI domain and for non-VTI domain, so vcpu_get/set_gr and rse_get/set_gr
   are merged, and all these functions can handle guest nats.
4. Merged vcpu_bsw0 and vcpu_bsw1, Now VMM used vgr[16],vbgr[16],vnat,vbnat in mapped_regs_t
   struct (is also vpd) to emuate guest banking switch operation.
5. Removed some CONFIG_VTIs and cleaned up some unused structure members and codes.

Note: Credit accidentally omitted from merge vcpu phase 1, included here:

This patch is based on ver 6723. And definitely I can boot dom0 with this patch.
Following things are done in this patch.
1. Merge structure pt_reg.
2. Though vcpu_info structure has been merged, non-vt domain used pointer
   vcpu->vcpu_info->arch.privregs, and vt domain used pointer
   vcpu->arch.arch_vmx.vpd, the value of these two pointers are different,
   that means vt and non-vt domain still use different privileged registers
   pages, in this case, we can't merge vcpu.c, so I merged these two pointer,
   and put it at vcpu->arch.privregs. vcpu->vcpu_info->arch.privregs and
   vcpu->arch.arch_vmx.vpd  will not exist. Why put it at vcpu->arch.privregs?
   1. There will be one less pointer unreferenced when accessing this
      privileged registers page.
   2. vcpu->vcpu_info can be accessed by guest, but guest can't access
      privileged registers page through this address, guest can access
      this privileged page only through another special mapping. So there
      is no need to expose this pointer to guest by putting it in
      vcpu->vcpu_info structure. All accesses to this page is through
      VCPU(vcpu,y) macro,
3. Merged following functions.
      Vcpu_set/get_(interruption control registers from cr16 to cr25),
        corresponding functions vmx_vcpu_set/get_*** will not exist.
      Vcpu->arch.arch_vmx.in_service[4] will not exist, we will all use
      vcpu->arch.insvc[4]
4. Cleaned up some unused structure members and codes.

Signed-off-by Anthony Xu <Anthony.xu@intel.com>

20 years agoAdd debug output for pfmon (default off, DEBUG_PFMON in config.h)
djm@kirby.fc.hp.com [Sun, 18 Sep 2005 18:18:57 +0000 (12:18 -0600)]
Add debug output for pfmon (default off, DEBUG_PFMON in config.h)

20 years agoRe-enable improved PAL code (time and perfmon work again). PAL code remapped
djm@kirby.fc.hp.com [Sun, 18 Sep 2005 16:30:57 +0000 (10:30 -0600)]
Re-enable improved PAL code (time and perfmon work again).  PAL code remapped
_lazily_ only when PAL called after rr7 changes.  Old PAL emulator can
be re-enabled with #define USE_PAL_EMULATOR in config.h.
Signed-off by: Dan Magenheimer <dan.magenheimer@hp.com>

20 years agoAdd additional stats to track VHPT saturation
djm@kirby.fc.hp.com [Fri, 16 Sep 2005 22:54:53 +0000 (16:54 -0600)]
Add additional stats to track VHPT saturation

20 years agoPAL cache flush (added during VTI merge) breaks on simulator
djm@kirby.fc.hp.com [Fri, 16 Sep 2005 22:53:30 +0000 (16:53 -0600)]
PAL cache flush (added during VTI merge) breaks on simulator

20 years agoComment out DTLB MATCH message as it is more frequent and annoying now
djm@kirby.fc.hp.com [Fri, 16 Sep 2005 22:51:55 +0000 (16:51 -0600)]
Comment out DTLB MATCH message as it is more frequent and annoying now

20 years agoReturn rid mangling to previous method (to match hyperprivop.S)
djm@kirby.fc.hp.com [Fri, 16 Sep 2005 22:50:09 +0000 (16:50 -0600)]
Return rid mangling to previous method (to match hyperprivop.S)

20 years agoScript to generate diffs between linux-xen subdirs and real linux
djm@kirby.fc.hp.com [Fri, 16 Sep 2005 22:48:44 +0000 (16:48 -0600)]
Script to generate diffs between linux-xen subdirs and real linux

20 years agoThis patch fixes a severe bug in vtlb, where domU may face machine crash
djm@kirby.fc.hp.com [Thu, 15 Sep 2005 16:54:16 +0000 (10:54 -0600)]
This patch fixes a severe bug in vtlb, where domU may face machine crash
intermittently. Normally in page fault handler, the entry hit in vtlb shouldn't
be injected back to vtlb again, not to say meaningless -1UL. After this fix,
vtlb hit ratio also improves since guest svhpt entry may live longer.

Signed-off-by Kevin Tian <kevin.tian@intel.com>

20 years agoProperly return extents for hypervisor memory ops call
djm@kirby.fc.hp.com [Thu, 15 Sep 2005 16:53:34 +0000 (10:53 -0600)]
Properly return extents for hypervisor memory ops call
Signed-off-by Kevin Tian <kevin.tian@intel.com>

20 years agoOops, one hypervisor.h change seems to have unfixed in the merge
djm@kirby.fc.hp.com [Thu, 15 Sep 2005 00:00:23 +0000 (18:00 -0600)]
Oops, one hypervisor.h change seems to have unfixed in the merge

20 years agoAdd missing include/decl to ia64-specific hypervisor.h
djm@kirby.fc.hp.com [Wed, 14 Sep 2005 23:01:42 +0000 (17:01 -0600)]
Add missing include/decl to ia64-specific hypervisor.h

20 years agoAdd ia64-specific hypervisor.h
djm@kirby.fc.hp.com [Wed, 14 Sep 2005 21:45:30 +0000 (15:45 -0600)]
Add ia64-specific hypervisor.h

20 years agoMerge latest xen-unstable into xen-ia64-unstable to prep
djm@kirby.fc.hp.com [Wed, 14 Sep 2005 21:36:10 +0000 (15:36 -0600)]
Merge latest xen-unstable into xen-ia64-unstable to prep
for push back to xen-unstable

20 years agoAdd needed header files that are buried/nested in x86
djm@kirby.fc.hp.com [Wed, 14 Sep 2005 21:33:52 +0000 (15:33 -0600)]
Add needed header files that are buried/nested in x86

20 years agoMerge latest xen-unstable into xen-ia64-unstable
djm@kirby.fc.hp.com [Wed, 14 Sep 2005 21:26:35 +0000 (15:26 -0600)]
Merge latest xen-unstable into xen-ia64-unstable

20 years agoRemove redundant semi-colon from end of DEFINE_RING_TYPES
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 20:45:40 +0000 (20:45 +0000)]
Remove redundant semi-colon from end of DEFINE_RING_TYPES
macro.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 19:59:15 +0000 (19:59 +0000)]
merge?

20 years agoSwitch most uses of write over to store.
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 19:53:29 +0000 (19:53 +0000)]
Switch most uses of write over to store.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoExplicit test for None.
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 19:52:04 +0000 (19:52 +0000)]
Explicit test for None.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoMore syntactic sugar.
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 19:34:13 +0000 (19:34 +0000)]
More syntactic sugar.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoMove start_time out of xend dir and use gather/store.
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 19:30:08 +0000 (19:30 +0000)]
Move start_time out of xend dir and use gather/store.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoSupport removing nodes from store if value to store is None.
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 19:29:25 +0000 (19:29 +0000)]
Support removing nodes from store if value to store is None.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoAdd store function.
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 19:22:31 +0000 (19:22 +0000)]
Add store function.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoAlways allow transaction abort.
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 19:17:22 +0000 (19:17 +0000)]
Always allow transaction abort.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoAdd gather function and robustify class methods' failure handling.
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 18:24:25 +0000 (18:24 +0000)]
Add gather function and robustify class methods' failure handling.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix mmapping of PCI resources from userspace.
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 17:54:43 +0000 (17:54 +0000)]
Fix mmapping of PCI resources from userspace.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 17:06:37 +0000 (17:06 +0000)]
merge?

20 years agoRename xm commands and cleanup of the "bogus" argument code.
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 17:06:25 +0000 (17:06 +0000)]
Rename xm commands and cleanup of the "bogus" argument code.
For the "bogus" argument code, avoid changing the argument list so
that errors can be reported consistently.
Signed-off-by: Dan Smith <danms@us.ibm.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix xc_make_page_below_4G(). Should fix PAE domain
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 16:56:05 +0000 (16:56 +0000)]
Fix xc_make_page_below_4G(). Should fix PAE domain
building on >= 4GB systems.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoDuring my attempts to get the latest bridge networking model working on my
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 16:49:23 +0000 (16:49 +0000)]
During my attempts to get the latest bridge networking model working on my
system, I often invoked 'network-bridge stop' with total failure.  Attached
is an updated version that works.

Signed-off-by: Andrew Theurer <habanero@us.ibm.com>
20 years agoFix xc_domain_memory_decrease_reservation().
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 15:56:06 +0000 (15:56 +0000)]
Fix xc_domain_memory_decrease_reservation().

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoAdd methods to read/write Vm/Domain store entries.
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 15:47:48 +0000 (15:47 +0000)]
Add methods to read/write Vm/Domain store entries.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoMove name back into main domain dir.
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 15:25:28 +0000 (15:25 +0000)]
Move name back into main domain dir.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoMove id back into main domain dir and rename to domid.
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 15:10:22 +0000 (15:10 +0000)]
Move id back into main domain dir and rename to domid.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 14:43:34 +0000 (14:43 +0000)]
merge?

20 years agoSet NE bit for VMX guest CR0. VMCS guest CR0.NE bit must
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 13:37:50 +0000 (13:37 +0000)]
Set NE bit for VMX guest CR0. VMCS guest CR0.NE bit must
be set, else it will cause "vm-entry failed".

Signed-off-by: Chengyuan Li <chengyuan.li@intel.com>
20 years agoMove uuid back into main domain dir.
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 13:37:03 +0000 (13:37 +0000)]
Move uuid back into main domain dir.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoAdd some sanity check when creating 3-level 1:1 page table
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 13:34:14 +0000 (13:34 +0000)]
Add some sanity check when creating 3-level 1:1 page table
in VMX domain builder.
 - Add check for empty l2e page entry.
 - Add check for failed vl1tab map.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Asit Mallick <asit.k.mallick@intel.com>
20 years agoClear pending interrupt on shared page when pic initialized
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 13:28:45 +0000 (13:28 +0000)]
Clear pending interrupt on shared page when pic initialized
and irq base changed.

Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
20 years agoGet rid of anonymous unions in public header files.
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 13:13:10 +0000 (13:13 +0000)]
Get rid of anonymous unions in public header files.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoCall dominfo.device_delete instead of non-existant dominfo.device_destroy.
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 12:49:13 +0000 (12:49 +0000)]
Call dominfo.device_delete instead of non-existant dominfo.device_destroy.
Signed-off-by: Sean Dague <sean@dague.net>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoRemove unsued domain_controller.h file.
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 10:58:00 +0000 (10:58 +0000)]
Remove unsued domain_controller.h file.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix 64-bit build problem. Not allowed to movl between a
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 09:20:21 +0000 (09:20 +0000)]
Fix 64-bit build problem. Not allowed to movl between a
segment register and a memory location.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoMove hypervisor.h to asm-i386/asm-x86_64.
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 09:17:44 +0000 (09:17 +0000)]
Move hypervisor.h to asm-i386/asm-x86_64.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agomem-map.sxp and vmxloader are unaffected by a 64-bit build,
kaf24@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 09:14:32 +0000 (09:14 +0000)]
mem-map.sxp and vmxloader are unaffected by a 64-bit build,
and belong in /usr/lib always (never /usr/lib64). qemu-dm
continues to live under /usr/lib64 on 64-bit systems.
Modify the vmx config script to auto-detect correct path
to qemu-dm, rather than staically configuring at compile
time.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix xenstored watch crash.
cl349@firebug.cl.cam.ac.uk [Wed, 14 Sep 2005 08:41:49 +0000 (08:41 +0000)]
Fix xenstored watch crash.
When a connection blocked waiting on a transaction, don't queue watch events.
Sure, they'd be ignored and re-transmitted, but it hits an assert that we don't
send data out blocked connections, and it's wasteful.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (authored)
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoDon't return failure when trying to delete a non-existent node.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 21:52:24 +0000 (21:52 +0000)]
Don't return failure when trying to delete a non-existent node.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoPerform xenbus operations in shutdown_handler in a transaction.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 21:29:28 +0000 (21:29 +0000)]
Perform xenbus operations in shutdown_handler in a transaction.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoDon't cause watch fire deadlock by unconditionally rewriting the sysrq node.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 21:24:03 +0000 (21:24 +0000)]
Don't cause watch fire deadlock by unconditionally rewriting the sysrq node.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoDon't fail readDB on empty dirs.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 21:00:13 +0000 (21:00 +0000)]
Don't fail readDB on empty dirs.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoSwitch shutdown and sysrq to xstransact.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 20:54:41 +0000 (20:54 +0000)]
Switch shutdown and sysrq to xstransact.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoConverge ia64 grant_table API
djm@kirby.fc.hp.com [Tue, 13 Sep 2005 20:20:02 +0000 (14:20 -0600)]
Converge ia64 grant_table API

20 years agoFree blkif if vbd_create fails.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 19:43:58 +0000 (19:43 +0000)]
Free blkif if vbd_create fails.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoCatchup with xen-unstable, add ia64 specifics to tools, and some VTI merge
djm@kirby.fc.hp.com [Tue, 13 Sep 2005 19:42:33 +0000 (13:42 -0600)]
Catchup with xen-unstable, add ia64 specifics to tools, and some VTI merge
Signed-off-by Kevin Tian <Kevin.tian@intel.com>

20 years agoFix the logic in vcpu_sleep_sync(): we must wait until
kaf24@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 19:09:44 +0000 (19:09 +0000)]
Fix the logic in vcpu_sleep_sync(): we must wait until
the running flag is cleared *and* the scheduler lock is
released. Not just one or the other.

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
20 years agoAdd ia64 header for synch_bitops.h
djm@kirby.fc.hp.com [Tue, 13 Sep 2005 19:08:00 +0000 (13:08 -0600)]
Add ia64 header for synch_bitops.h

20 years agoSome more resilience to errors in creating vbds etc; still needs more work
shand@ubuntu.eng.hq.xensource.com [Tue, 13 Sep 2005 18:03:04 +0000 (10:03 -0800)]
Some more resilience to errors in creating vbds etc; still needs more work
to tidy up things properly (e.g. the store state).

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoSwitch memory target handling to use xstransact.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 17:49:38 +0000 (17:49 +0000)]
Switch memory target handling to use xstransact.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agog/c introduceDomain and releaseDomain bindings in xsnode and xsobj.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 17:32:59 +0000 (17:32 +0000)]
g/c introduceDomain and releaseDomain bindings in xsnode and xsobj.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoSwitch vcpu hotplugging to use xstransact.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 17:31:13 +0000 (17:31 +0000)]
Switch vcpu hotplugging to use xstransact.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix domain list build/cleanup code with xend subdirectory.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 16:57:45 +0000 (16:57 +0000)]
Fix domain list build/cleanup code with xend subdirectory.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoIntroduceDomain of dom0 can fail when it's already connected.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 16:56:02 +0000 (16:56 +0000)]
IntroduceDomain of dom0 can fail when it's already connected.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix error handling code paths.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 16:55:21 +0000 (16:55 +0000)]
Fix error handling code paths.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoMerge with latest xen-unstable
djm@kirby.fc.hp.com [Tue, 13 Sep 2005 16:14:16 +0000 (10:14 -0600)]
Merge with latest xen-unstable

20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 15:48:19 +0000 (15:48 +0000)]
merge?

20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 15:46:49 +0000 (15:46 +0000)]
merge?

20 years agoFix imports.
emellor@ewan [Tue, 13 Sep 2005 15:44:48 +0000 (16:44 +0100)]
Fix imports.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 15:33:37 +0000 (15:33 +0000)]
merge?

20 years agoStore dom0 store ring-ref in store.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 15:32:38 +0000 (15:32 +0000)]
Store dom0 store ring-ref in store.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoSwitch to IntroduceDomain, move xend info into xend subdirectory in store.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 15:21:53 +0000 (15:21 +0000)]
Switch to IntroduceDomain, move xend info into xend subdirectory in store.
Also switch store/console event channel and page reference store
entries over to xstransact.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoMove xshandle to xsutil.py, add IntroduceDomain, fix list to handle empty/non-existan...
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 15:19:39 +0000 (15:19 +0000)]
Move xshandle to xsutil.py, add IntroduceDomain, fix list to handle empty/non-existant directories and fix Remove.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 15:05:49 +0000 (15:05 +0000)]
merge?

20 years agoFix the check that the argument count is even, for xenstore_write.
emellor@ewan [Tue, 13 Sep 2005 14:46:20 +0000 (15:46 +0100)]
Fix the check that the argument count is even, for xenstore_write.

20 years agoChange read and list to return None if key/dir doesn't exist.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 14:45:34 +0000 (14:45 +0000)]
Change read and list to return None if key/dir doesn't exist.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoAdded help line for dev-docs target.
emellor@ewan [Tue, 13 Sep 2005 14:42:34 +0000 (15:42 +0100)]
Added help line for dev-docs target.

20 years agoAdded isDevControllerClass so that XendDomainInfo does not need to store the same...
ewan@linford.intra [Tue, 13 Sep 2005 13:49:37 +0000 (14:49 +0100)]
Added isDevControllerClass so that XendDomainInfo does not need to store the same information internally.  This may soon go, depending on how useful controller.py turns out to be.

20 years agoRemoved {add,get}_{config,device}_handler in favour of using a simple dictionary...
ewan@linford.intra [Tue, 13 Sep 2005 13:48:22 +0000 (14:48 +0100)]
Removed {add,get}_{config,device}_handler in favour of using a simple dictionary directly.  Fix a misnamed variable blconfig that was supposed to refer to blcfg.  This showed up under pylint as a undefined variable, but would have manifested itself in the bootloader configuration being ignored.

20 years agoAdded .PHONY target so that make works from the tools/python directory (it was seeing...
ewan@linford.intra [Tue, 13 Sep 2005 13:43:18 +0000 (14:43 +0100)]
Added .PHONY target so that make works from the tools/python directory (it was seeing the build directory and therefore doing nothing).

20 years agoPass the root directory to Doxyfilter and thence pythfilter.py so that the latter...
ewan@linford.intra [Tue, 13 Sep 2005 13:42:21 +0000 (14:42 +0100)]
Pass the root directory to Doxyfilter and thence pythfilter.py so that the latter can get the namespace/packages correct.

20 years agoPass the root directory to Doxyfilter and thence pythfilter.py so that the latter...
ewan@linford.intra [Tue, 13 Sep 2005 13:41:05 +0000 (14:41 +0100)]
Pass the root directory to Doxyfilter and thence pythfilter.py so that the latter can get the namespace/packages correct.

20 years agoThis trivial patch makes sure that mem-map.sxp and the qemu bits
kaf24@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 10:49:04 +0000 (10:49 +0000)]
This trivial patch makes sure that mem-map.sxp and the qemu bits
get installed in /usr/lib64 on distributions that want things
there.

Signed-off-by: Rik van Riel <riel@redhat.com>
20 years agoUpdate ignores list for new xenstore binaries.
kaf24@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 10:42:15 +0000 (10:42 +0000)]
Update ignores list for new xenstore binaries.

20 years agosynch_bitops.h is an arch-specific header file.
kaf24@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 10:40:29 +0000 (10:40 +0000)]
synch_bitops.h is an arch-specific header file.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoNewer binutils is a bit stricter and errors out when you try
kaf24@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 10:21:22 +0000 (10:21 +0000)]
Newer binutils is a bit stricter and errors out when you try
to use movl on a 16 bit word on x86_64.  Using just a "mov"
compiles fine and should result in the same code.

{standard input}: Assembler messages:
{standard input}:2138: Error: suffix or operands invalid for `mov'
{standard input}:2140: Error: suffix or operands invalid for `mov'
{standard input}:2142: Error: suffix or operands invalid for `mov'
{standard input}:2144: Error: suffix or operands invalid for `mov'

Signed-off-by: Rik van Riel <riel@redhat.com>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 10:14:20 +0000 (10:14 +0000)]
merge?

20 years agoFixed consoled race condition.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 10:13:52 +0000 (10:13 +0000)]
Fixed consoled race condition.
Signed-off by: Andy Peace <andrew.peace@xensource.com>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agodomain_crash_synchronous() on x86_64 causes Xen to crash because
kaf24@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 10:12:40 +0000 (10:12 +0000)]
domain_crash_synchronous() on x86_64 causes Xen to crash because
it tries to dereference an invalid stack address. The patch below
fixes this. The patch also updates show_registers() to print the
same information as its x86_32 equivalent.

Signed-off-by: Leendert van Doorn <leendert@watson.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoPrevent opening the xenbus device if the store isn't connected yet.
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 10:05:49 +0000 (10:05 +0000)]
Prevent opening the xenbus device if the store isn't connected yet.
Running xenstore clients using the xenbus device before the store
connection has been set up causes a crash because the store page
won't have been allocated yet.  This is only a problem in dom0 where
we setup the store page from the PRIVCMD_INITDOMAIN_STORE ioctl.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Tue, 13 Sep 2005 09:11:58 +0000 (09:11 +0000)]
merge?